package com.ssy.lingxi.member.merchant.model.vo.basic.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 仅返回会员id字段的接口通用的VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-06-30
 */
public class MemberIdVO implements Serializable {
    private static final long serialVersionUID = 4757564736775319195L;

    public MemberIdVO() {
    }

    public MemberIdVO(long id) {
        this.memberId = id;
    }

    /**
     * 会员id
     */
    @NotNull(message = "会员id要大于0")
    @Positive(message = "会员id要大于0")
    private Long memberId;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }
}
